﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DisplayCommand.aspx.cs"
    Inherits="PizzaWic.cooker.DisplayCommand" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link rel="stylesheet" href="../style/cooker.css" type="text/css" media="screen"
        title="default" />
</head>
<body>
    <asp:Panel ID="panelBody" runat="server">
        <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:Button ID="Button1" runat="server" Text="déconnexion" OnClick="Deconnexion_OnClick"/>
        <div>
            <table>
                <thead>
                    <tr>
                        <th>
                            numéro de la commande
                        </th>
                        <th>
                            nom pizza
                        </th>
                        <th>
                            action
                        </th>
                    </tr>
                </thead>
                <asp:Repeater ID="repeaterCooker" runat="server" OnItemDataBound="repeaterCooker_dataBound"
                    OnItemCommand="itemCommand">
                    <ItemTemplate>
                        <tr id="line" runat="server">
                            <td>
                                <asp:HiddenField ID="firstLine" runat="server" Value='<%#Eval("first")%>' />
                                <asp:Label ID="numCommande" runat="server" Text='<%#Eval("numero_commande")%>'></asp:Label>
                            </td>
                            <td>
                                <asp:Label ID="namePizza" runat="server" Text='<%#Eval("nom_pizza")%>'></asp:Label>
                                <asp:HiddenField ID="id_pizza" runat="server" Value='<%#Eval("id_product")%>' />
                                
                            </td>
                            <td>
                                <asp:Button ID="buttonValidate" runat="server" src="../images/table/action_delete.gif"
                                    Width="120px" Height="60px" Text="done!" title="valider" CommandName="validate_pizza"
                                    CommandArgument='<%# Eval("numero_commande") + ";" + Eval("id_product")%>' />
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </table>
        </div>
        </form>
    </asp:Panel>
</body>
</html>
